<?php

// return [
//     'platform' => [

//         'app_id' => env('KUAISHOU_APP_ID', ''),

//         'secret' => env('KUAISHOU_APP_SECRET', ''),

//         'redirect_uri' => env('KUAISHOU_REDIRECT_URI', ''),

//         'timeout' => 60.0,
//     ],

// ];

// <?php

// /*
//  * This file is part of the overtrue/laravel-wechat.
//  *
//  * (c) alim <tuple@youshui.ren>
//  *
//  * This source file is subject to the MIT license that is bundled
//  * with this source code in the file LICENSE.
//  */

return [
    /*
     * 默认配置，将会合并到各模块中
     */
    'defaults' => [
        /*
         * 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
         */
        'response_type' => 'array',

        /*
         * 使用 Laravel 的缓存系统
         */
        'use_laravel_cache' => true,

        /*
         * 日志配置
         *
         * level: 日志级别，可选为：
         *                 debug/info/notice/warning/error/critical/alert/emergency
         * file：日志文件位置(绝对路径!!!)，要求可写权限
         */
        'log' => [
            'level' => env('KUAISHOU_LOG_LEVEL', 'debug'),
            'file' => env('KUAISHOU_LOG_FILE', storage_path('logs/kuaishou.log')),
        ],
    ],

    'mini_program' => [
         'default' => [
             'app_id'  => env('KUAISHOU_APP_ID', ''),
             'secret'  => env('KUAISHOU_APP_SECRET', ''),
             'pay_secret' => env('KUAISHOU_PAYMENT_SECRET',''),
             'pay_token' => env('KUAISHOU_PAYMENT_TOKEN',''),
         ],
     ],
];
